package com.xjscrm.console.chat.frame.send;

import com.xjscrm.console.chat.enums.ChatMsgType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author mingyang.chen create in 2024/3/12 13:47
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel
public class SConversationAddMsg extends SResultMsg {

    @ApiModelProperty("回话id. 可为单聊或群聊微信id")
    private String conversationId;

    @ApiModelProperty("会话名称")
    private String conversationName;

    @ApiModelProperty("会话头像")
    private String conversationAvatar;

    @ApiModelProperty("会话类型. 110:单聊, 111:群聊")
    private Integer type;

    @ApiModelProperty("会话主键id")
    private Long id;

    public SConversationAddMsg() {
        this.setResultType(ChatMsgType.s_conversation_add_msg.getCode());
        this.setResultTypeDesc(ChatMsgType.s_conversation_add_msg.getDesc());
    }
}
